package com.weiyi.weiman.controller;

import com.weiyi.weiman.domain.dto.ResultInfo;
import com.weiyi.weiman.utils.ResultUtils;
import comics.Comics;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.xml.transform.Result;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Author
 * @Date 2021/5/8 下午3:29
 * @Description
 * @Version 1.0
 **/
@RestController
@RequestMapping("/test")
public class Test {

     @GetMapping("/a")
     public ResultInfo a(HttpServletRequest request) {
//         System.out.println(comics2.getComicsId());
//         System.out.println(comics2.getComicsName());
//         Map<String, String> map = new HashMap<>();
//         map.put("xxx","aaa");
//         List<Comics> list = new ArrayList<>();
//         Comics comics = new Comics();
//         comics.setComicsId(1L);
//         Comics comics1 = new Comics();
//         comics1.setComicsId(2L);
//         list.add(comics);
//         list.add(comics1);
//         comics2.setComicsCover("xxxxxxxx.jpg");
//         list.add(comics2);
         return ResultUtils.successInfo("list");
     }

     @GetMapping("/b")
    public ResultInfo b() {
         return ResultUtils.successInfo("aa");
     }
}
